// TOWN DIALOGUE SCRIPT
//    Town 156: Dorngas

begintalkscript;

variables;

short i,j,k,r1,choice;

// Wray

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 1;
	question = "Wray";
	text1 = "You meet a sage, hard at work making a series of intricate drawings. You look at them. They all depict a bizarre looking beast with four stumpy, muscular legs, portrayed in a variety of vicious poses.";
	text2 = "He looks up and self-consciously wipes some ink from his fingers. _Ah. A traveler. An explorer of the world. I am Wray. Welcome._";
	text5 = "Wray continues to work on his drawings. He portrays the alien beast standing, walking, running, and attacking. You note that, at no point, does he depict one which is tired, wounded, or dead.";
	action = INTRO;

begintalknode;
	state = 1;
	nextstate = 2;
	question = "_So what kind of work do you do?_";
	text1 = "_Well, I'm a sage. A sage of the Empire. Finder of knowledge. That's how I make my living. But to be honest, right now I'm preoccupied with my research._";

begintalknode;
	state = 2;
	nextstate = -1;
	question = "_What does a sage in this small town do?_";
	text1 = "_I sell little bits of info. On farming, simple medicines, and such. Nothing interesting._";

begintalknode;
	state = 2;
	nextstate = -1;
	question = "_Care to share your research with me?_";
	text1 = "_Yes. I am trying to find out as much as I can about the alien beasts that threaten us all._ He shows you one of his drawings. _Here they are. They're much worse in person, I promise you._";

begintalknode;
	state = 1;
	nextstate = 4;
	question = "_What are you drawing?_";
	text1 = "_They are called alien beasts. An uncreative name, but, I assure you, an accurate one. They are unlike any living thing known, in behavior, in appetite, in viciousness._";

begintalknode;
	state = 4;
	nextstate = 5;
	question = "_What do you know about the alien beasts?_";
	text1 = "_We could think of no better name for them. You'd know one if you saw one. Five feet high at the shoulder. Four legs. Pure muscle. And utterly lethal._";
	text2 = "_It was they who managed to destroy the Keep of Tinraya._";

begintalknode;
	state = 5;
	nextstate = -1;
	question = "_How lethal are they?_";
	text1 = "_One is a match for ten strong soldiers. They tore through the walls of Tinraya itself! They're even worse than dragons!_";

begintalknode;
	state = 5;
	nextstate = 6;
	question = "_Tell me more about the Keep._";
	text1 = "_The Keep of Tinraya was to the north. It was the mightiest and well-defended city in Valorim. Its walls were thought to be impregnable, until a hundred of the alien beasts found their way inside. Few of the humans survived._";
	text2 = "_It's a sad tale, but, for once, the Empire reacted correctly._";

begintalknode;
	state = 6;
	nextstate = 7;
	question = "_How did the Empire react?_";
	text1 = "_It was a brilliant move. Footracer Province, in which the keep was located, was surrounded by a wall. A dozen wizards came from the Empire and cast many spells on the wall, so that, instead of keeping invaders out, it held the monsters in!_";
	text2 = "_Unfortunately, this is a temporary solution._";

begintalknode;
	state = 7;
	nextstate = 8;
	question = "_Is a better solution in the works?_";
	text1 = "_Not that I know of. Walls crumble. Spells fade. The beasts are still in there. If something is not done, they'll get out and keep spreading. Hopefully, someone in Blackcrag Fortress will figure out what to do soon._";

begintalknode;
	state = 8;
	nextstate = 9;
	question = "_Who is in Blackcrag Fortress?_";
	text1 = "_Everyone important. They are the ones who determine who gets in and out of Footracer Province. They are the ones who determine our fate. Unfortunately, they have withdrawn._";

begintalknode;
	state = 9;
	nextstate = -1;
	question = "_How have they withdrawn?_";
	text1 = "_Nobody has been in or out of there for months. Valorim is quarantined off. Some fear we've been abandoned to our fate._";
	text2 = "He shakes his head. _So I study the alien beasts and look for a weakness. And, to be honest, I don't think there is one._";

begintalknode;
	state = 9;
	nextstate = -1;
	question = "_How might I get into Blackcrag Fortress?_";
	text1 = "_I don't know. I've heard rumors that there is a back way in, but those sorts of rumors always exist. If someone wants to meet Empress Prazac, I don't know how they could._";

begintalknode;
	state = 10;
	nextstate = 5;
	question = "_Are there any dragons around these parts?_";
	text1 = "_Dragons? Oh, I heard some soldier say he saw dragons flying over the mountains to the northwest. Hardly plausible, of course. The Empire killed all of the dragons centuries ago._";

begintalknode;
	state = 1;
	nextstate = 11;
	question = "_I've encountered a lot of vicious monsters._";
	text1 = "He holds up his drawing for a closer look. _Yes, I'm sure you have. The alien beasts are not the only horrible, deadly monster seen in this area._";

begintalknode;
	state = 11;
	nextstate = 12;
	question = "_What else is there?_";
	text1 = "_Well, actually, I'm not sure. But one of the soldiers passing through claimed to have seen dragons flying in the sky. And everyone knows there's nothing more evil and bloodthirsty than a dragon._";

begintalknode;
	state = 12;
	nextstate = -1;
	question = "_Where is this soldier?_";
	text1 = "_Don't know. Moved on. Might be dead now. But he did say he saw the dragons to the north. Of course, he might have been drunk. I'll believe him when I see one._";

begintalknode;
	state = 1;
	nextstate = -1;
	question = "_What do you do besides study monsters?_";
	text1 = "_Nothing, now. I don't know any magic. I learn what I can about the foes of the Empire, in case the Empire army ever returns._";
	text2 = "_I don't even sell maps anymore. You can buy one from the innkeeper if you need one._";

// Radewitz

begintalknode;
	tag = 60;
	state = -1;
	nextstate = 35;
	question = "Radewitz";
	text1 = "You meet the innkeeper, a short, stout man with coarse hairs sticking out of everywhere visible. He's on edge. _I'm Radewitz._";
	text5 = "Radewitz is still nervous. He listens to you, but he would clearly prefer to be packing and leaving town.";
	action = INTRO;

begintalknode;
	state = 35;
	nextstate = 36;
	question = "_How fares your inn?_";
	text1 = "_Surviving, for now. The monsters haven't destroyed us. Yet. I can give you a room for only three coins. Good rate. We don't get many visitors. Also, for what little they are worth, I sell maps._";

begintalknode;
	state = 36;
	nextstate = 38;
	question = "_Tough times?_";
	text1 = "_The alien beasts may come down at any moment and kill us all._ He looks around nervously, then says, _But I don't know much about that. Ask Wray. He works nearby. He knows much more about the things._";

begintalknode;
	state = 38;
	nextstate = 36;
	question = "_Know anything about the alien beasts?_";
	text1 = "_Don't know too much, just that they're lethal and will kill us all. Ask Wray. The sage. He knows a lot more about it._";

begintalknode;
	state = 36;
	nextstate = 37;
	question = "_Maps of what?_";
	text1 = "_I used to do good business selling maps of Footracer Province, to the north, to passing caravans. Then the alien beasts destroyed the whole place. Now my maps are useless._";
	text2 = "_You can purchase one if you want. Only a hundred coins. Won't do you any good. Nobody is allowed in there._";

begintalknode;
	state = 37;
	nextstate = -1;
	condition = gf(309,23) == 0 && coins_amount() >= 100;
	question = "_I want a map of Footracer Province._ Pay 100 coins.";
	text1 = "You pay Radewitz and get a map in return. This expands your knowledge of Valorim.";
	text2 = "(Press the World Map button to see your map of Valorim.)";
	code =
		change_coins(-100);
		sf(309,23,1);
	break;

begintalknode;
	state = 37;
	nextstate = -1;
	question = "_Suppose I wanted to enter Footracer Province. What should I do?_";
	text1 = "_Give up. The only people who could give you access are in Blackcrag Fortress, far to the north, and they aren't letting in anyone from Valorim._";

begintalknode;
	state = 35;
	nextstate = -1;
	question = "_We'll take a room._";
	condition = coins_amount() >= 3;
	text1 = "He looks relieved. _After the alien beasts came, nobody who can help it comes up here. Glad I can finally rent a room._ He shows you to a clean, slightly dusty room.";
	code =
		revive_party();
		change_coins(-3);
		relocate_char(get_pc_id(0),42,19,FALSE);
		relocate_char(get_pc_id(1),43,19,FALSE);
		relocate_char(get_pc_id(2),43,20,FALSE);
		relocate_char(get_pc_id(3),42,20,FALSE);
	break;

begintalknode;
	state = 35;
	nextstate = -1;
	condition = 1;
	question = "_I have to go._";
	text1 = "_Be very careful. The alien beasts will break out of Tinraya at any moment and kill us all._";
	action = END_TALK;

// Angry Man

begintalknode;
	tag = 80;
	state = -1;
	nextstate = 70;
	question = "Angry Man";
	text1 = "This dirty, scarred man is very angry that you have invaded his room. He glares as you and keeps his hand on his sword, but he doesn't speak. You notice that he has the tattoo of a sun on the back of his right hand.";
	text5 = "The scarred man continues to glare at you. The rank smell of the room is starting to make your eyes water. You notice that he has the tattoo of a sun on the back of his right hand.";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	question = "_What is your name?_";
	text1 = "He says nothing. His hand doesn't stray from his sword.";

begintalknode;
	state = 70;
	nextstate = -1;
	question = "_Could I speak with you for a moment?_";
	text1 = "He says two words in response. They are obscene. He doesn't want to talk to you.";
	action = END_TALK;

begintalknode;
	state = 70;
	nextstate = 71;
	condition = gf(133,4) >= 1;
	question = "_Say, your name wouldn't happen to be Zik, would it?_";
	text1 = "He looks startled. It takes him a moment to regain his composure. _Nah. Never heard the name. Get out of my room._";

begintalknode;
	state = 71;
	nextstate = -1;
	question = "_All right. Sorry to bother you._";
	text1 = "His response is unhelpful and obscene.";
	action = END_TALK;

begintalknode;
	state = 71;
	nextstate = -1;
	question = "_No, I think you are Zik. I think you had better come with me. Someone in Softport wants to see you._";
	text1 = "_Curse them! I thought I had lost them for good! Now I'll have to kill you and find a fresh hiding place._ He draws his sword.";
	action = END_TALK;
	code =
		set_attitude(15615,10);
	break;

